Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Deployment: remove replicas=1 #74

Merged

Conversation

chengchengmu
Copy link
Contributor

Description

This PR removes the replicas: 1 inside the Deployment object.

Motivation

For Horizontal Pod Autoscaler to work properly with gitops systems such as ArgoCD, FluxCD, Deployment objects shouldnt' have replicas set. The default replicas is 1 so this is safe to be removed.
Also it appears that it is not easy to remove a field in jsonnet once it is set, so it is better to just not set it.

References

Copy link
Contributor

@jjo jjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM++!

@chengchengmu
Copy link
Contributor Author

Thanks @jjo !

@jbianquetti-nami do you mind taking a look at this tiny PR when you get a chance ?

@jbianquetti-nami jbianquetti-nami merged commit 23fe9f1 into bitnami:master Aug 25, 2022
Aman1994 pushed a commit to Aman1994/k8id that referenced this pull request Feb 1, 2023
> Also it appears that it is not easy to remove a field in jsonnet once it is set, so it is better to just not set it.

bitnami/kube-libsonnet#74
Aman1994 pushed a commit to Obmondo/kubeaid that referenced this pull request Feb 1, 2023
> Also it appears that it is not easy to remove a field in jsonnet once it is set, so it is better to just not set it.

bitnami/kube-libsonnet#74
KlavsKlavsen pushed a commit to Obmondo/kubeaid that referenced this pull request Feb 2, 2023
> Also it appears that it is not easy to remove a field in jsonnet once it is set, so it is better to just not set it.

bitnami/kube-libsonnet#74
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants